{wz}
<script>
function getParentProductClass(v,i){
	$.get(APP+'/Ajax/getParentProductClass/id/'+i,function(data){
		data && $dom.find("#parent_info").html(lang['basic']['class_parent']+data)
	})
}
$().ready(function(){
	getParentProductClass('',{$rs.product_class_id});
})
function setBgColor(obj){
	var row = $(obj).attr('rowindex');
	var cols = $(obj).attr('colsindex');
	$("#fit").find("td").removeClass("selected_color");
	$("#fit").find("td[rowindex=1][colsindex="+cols+"]").addClass("selected_color");
	$("#fit").find("td[rowindex="+row+"][colsindex=1]").addClass("selected_color");
	$(obj).addClass("selected_color");
}
function clearBgColor(){
	$("#fit").find("td").removeClass("selected_color");
}
</script> 
<div id="print">
<div class="add_box">
<table cellspacing="0" cellpadding="0" class="add_table">
    <tbody>
    <tr><th colspan="2">{$lang.basic_title}</th></tr>
    <tr>
      <td class="width15">{$lang.product_no}：</td>
      <td class="t_left">{$rs.product_no}</td>
    </tr>
    <tr>
      <td>{$lang.product_name}：</td>
      <td class="t_left">{$rs.product_name}</td>
    </tr>
    <tr>
      <td>{$lang.class_name}：</td>
      <td class="t_left">{$rs.product_id_name} <span id="parent_info"></span></td>
    </tr>
     {if C('PRODUCT_FACTORY')==1}
    <tr>
      <td>{$lang.factory_name}：</td>
      <td class="t_left">{$rs.factory_name}</td>
    </tr>
    {/if}
     {if C('PRODUCT_COLOR')==1}
    <tr>
      <td>{$lang.color_name}：</td>
      <td class="t_left">{$rs.color}</td>
    </tr>
    {/if}
    {if C('PRODUCT_SIZE')==1}
    <tr>
      <td>{$lang.size_name}：</td>
      <td class="t_left">{$rs.size}</td>
    </tr>
    {/if}
     {if $show_price_title}
    <tr><th colspan="2">{$lang.price_title}</th></tr>
    {/if}
    {if $show_field.instock_price}
    <tr>
      <td>{$lang.instock_price}：</td>
      <td class="t_left">{$rs.dml_instock_price|dml}（{$cur.in}）</td>
    </tr>
    {/if}
     {if C('MULTI_CLIENT')}
     {if $show_field.wholesale_price}
     <tr>
      <td>{$lang.wholesale_price}：</td>
      <td class="t_left">{$rs.dml_wholesale_price|dml}（{$cur.out}）</td>
    </tr>
    {/if}
     {if $show_field.retail_price}
    <tr>
      <td>{$lang.retail_price}：</td>
      <td class="t_left">{$rs.dml_retail_price|dml}（{$cur.out}）</td>
    </tr>
    {/if}
     {if $show_field.sale_price}
    <tr>
      <td>{$lang.other_price}：</td>
      <td class="t_left">{$rs.dml_sale_price|dml}（{$cur.out}）</td>
    </tr>
    {/if}
    {else}
     {if $show_field.sale_price}
     <tr>
      <td>{$lang.sale_price}：</td>
      <td class="t_left">{$rs.dml_sale_price|dml}（{$cur.out}）</td>
    </tr>
    {/if}
    {/if}
    {if $show_field.instock_price}
     <tr>
      <td>{$lang.avg_price}：</td>
      <td class="t_left">
       {foreach item=item key=key from=$rs.price.avg}
      {if $item>0}{$key}：{$item|dml:true}；{/if}
      {/foreach}
      </td>
    </tr>
    <tr>
      <td>{$lang.last_price}：</td>
      <td class="t_left">
       {foreach item=item key=key from=$rs.price.last}
      {if $item>0}{$key}：{$item|dml:true}；{/if}
      {/foreach}
      </td>
    </tr>
     {/if}
    <tr><th colspan="2">{$lang.propre_title}</th></tr>
{if C("storage_format")>1} 
<tr>
<td>{$lang.storage_1}：</td>
<td class="t_left">{$rs.dml_capability}</td>
</tr>
{/if}
{if C("storage_format")==3}
<tr>
<td>{$lang.dozen}：</td>
<td class="t_left">{$rs.dml_dozen}</td>
</tr>
<tr>
<td>{$lang.storage_2}：</td>
<td class="t_left">{$rs.capability/$rs.dozen}</td>
</tr>
{/if}
<tr>
<td>{$lang.cube}：</td>
<td class="t_left">
{$lang.long}{$rs.dml_cube_long}M*
{$lang.wide}{$rs.dml_cube_wide}M*
{$lang.high}{$rs.dml_cube_high}M
={$rs.dml_cube}M3
</td>
</tr>
<tr>
<td>{$lang.weight}：</td>
<td class="t_left">{$rs.dml_weight}KG
</td>
</tr>

{if C('PRODUCT_COLOR')==1 && C('PRODUCT_SIZE')==1}
<tr>
<td>{$lang.fit}：</td>
<td class="t_left">
<div class="product_width">{html_fit class="fit" value="`$rs.fit`" readonly="true"}</div>
</td>
</tr>
{/if}
{if $rs.pics}
<tr>
<td>{$lang.product_pics}：</td>
<td class="t_left">{showFiles from=$rs.pics}
</td>
</tr>
{/if}
{if $smarty.const.LANG_SET=='fr'}
{assign var="properties_name" value="properties_name_fr"}
{else}
{assign var="properties_name" value="properties_name"}
{/if}
    {foreach key=key item=item from=$rs.detail}
    <tr>
      <td>{$item.$properties_name}：</td>
      <td class="t_left">
      {$item.properties_value}
      </td>
    </tr>
    {/foreach}
     <tr>
      <td valign="top">{$lang.comments}：</td>
      <td class="t_left"><p class="line_24">{$rs.comments}</p></td>
    </tr>
    </tbody>
  </table>
  </div> 
